package com.ft.oa.web.presalesController;

import com.ft.oa.domain.clueproject.ClueProjectProgress;
import com.ft.oa.domain.dto.ApiResult;
import com.ft.oa.service.clueprojectService.IClueProjectprogressServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/projectprogress")
@RestController
public class ProjectprogressController {
    @Autowired
    private IClueProjectprogressServer iClueProjectprogressServer;
    /**
     * 返回所有项目进度
     */
    @GetMapping("/Clueprogress")
    private ApiResult Clueprogress(@RequestParam String gressId){
        return ApiResult.successWithData(iClueProjectprogressServer.Clueprogress(gressId));
    }
    /**
     * 新增项目进度
     */
    @PostMapping("/addClueprogress")
    private ApiResult addClueprogress(@RequestBody ClueProjectProgress clueProjectProgress){
        return ApiResult.successWithData(iClueProjectprogressServer.addClueprogress(clueProjectProgress));
    }
    /**
     * 根据id查询项目进度
     */
    @GetMapping("/ClueprogressId")
    private ApiResult ClueprogressId(@RequestParam String id){
        return ApiResult.successWithData(iClueProjectprogressServer.ClueprogressId(id));
    }
}
